/**   
* @Title: MetadataDAOImpl.java 
* @Package com.medsoft.logpool.core 
* @Description: TODO(用一句话描述该文件做什么) 
* @author zjhua@hundsun.com   
* @date 2016年7月12日 上午9:22:00 
* @version V1.0   
*/ 
package com.medsoft.logpool.core;

import java.util.List;

import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author zjhua
 *
 */
@Service
public class OldLogPurgeDAOImpl implements OldLogPurgeDAO {

	private static final String DAO_NAMESPACE = "com.medsoft.logpool.mybatis.Log4j.";
	
	@Autowired
	private SqlSession sqlSession;
	
	/* (non-Javadoc)
	 * @see com.medsoft.logpool.core.MetadataDAO#queryLogLevel()
	 */
	@Override
	public void deleteOldLogs() {
		sqlSession.delete(DAO_NAMESPACE + "deleteOldLogs"); 
	}
}
